import request from '@/utils/requestMd5'

export function allocation_index(params) {
  return request({
    url: '/allocation/index',
    method: 'get',
    params
  })
}

export function allocation_add(data) {
  return request({
    url: '/allocation/add',
    method: 'post',
    data:data
  })
}

export function allocation_getGoods(params) {
  return request({
    url: '/allocation/getGoods',
    method: 'get',
    params
  })
}

export function allocation_getGoodsSpu(params) {
  return request({
    url: '/allocation/getGoodsSpu',
    method: 'get',
    params
  })
}


// 导出SKU调拨
export function export_allocation_info(data) {
  return request({
    url:"/export/allocation",
    method:'post',
    responseType:'blob',
    data:data
  })
}